<template>
	<view>
		<button type="default" @tap="isShow = true">选择时间 {{date}}</button>
		<Yselector :show.sync='isShow' @change='change'></Yselector>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				isShow:false,
				date:'',
			}
		},
		methods: {
			change(info){
				console.log('返回数据====>',info)
				this.date = ''
				for(let item of info){
					this.date = `${this.date} ${item}`
				}
				
			},
		}
	}
</script>

<style>

</style>
